package cn.laixueit;

public class Student {


    public int getAge(){
        return 18;
    }
    public String isAgeGt18(){
        int age = 120;
        if(age >= 18){
            return "成年"; // 该方法就结束了，已经获取返回值
        }
        return "未成年";
    }

    public static void main(String[] args) {
        Student student = new Student();
        int age = student.getAge();
        System.out.println(age);
    }

}
